package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h2>聊天主表</h2>
 * Created by Lee.
 */
@Data
@TableName("v_chat")
@NoArgsConstructor
public class ChatEntity extends BaseEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long anotherId;

    public ChatEntity(Long userId, Long anotherId) {
        this.userId = userId;
        this.anotherId = anotherId;
    }
}
